package org.daisy.springbootdemo;

import org.springframework.web.bind.annotation.*;

@RequestMapping("/user")
@RestController
public class UserController {

    //只支持get
    @RequestMapping(value = "/m1",method = RequestMethod.GET)
    public String m1(){
        return "m1";
    }

    //只支持post
    @PostMapping("/m2")
    public String m2(){
        return "m2";
    }
}
